<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1, minimum-scale=1, maximum-scale=1">
<meta name="renderer" content="webkit">
<meta name="google" value="notranslate">
<meta name="robots" content="index,follow">


<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Akkuman">
<meta name="twitter:description" content="Akkuman的技术博客">
<meta name="twitter:image:src" content="http://127.0.0.1:8000/images/avatar.png">

<meta property="og:url" content="http://127.0.0.1:8000">
<meta property="og:title" content="Akkuman">
<meta property="og:description" content="Akkuman的技术博客">
<meta property="og:site_name" content="Akkuman">
<meta property="og:image" content="http://127.0.0.1:8000/images/avatar.png">
<meta property="og:type" content="website">
<meta name="robots" content="noodp">

<meta itemprop="name" content="Akkuman">
<meta itemprop="description" content="Akkuman的技术博客">
<meta itemprop="image" content="http://127.0.0.1:8000/images/avatar.png">

<link rel="canonical" href="http://127.0.0.1:8000">

<link rel="shortcut icon" href="/favicon.png">
<link rel="apple-itouch-icon" href="/favicon.png">

<link type="text/css" rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="/bundle/css/prism.css">
<link type="text/css" rel="stylesheet" href="/bundle/css/zoom.css">
<link type="text/css" rel="stylesheet" href="/bundle/css/main.css">
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>



<script>var cPlayers = [];var cPlayerOptions = [];</script>


<script type="text/javascript">
    var timeSinceLang = {
        year: '年前',
        month: '个月前',
        day: '天前',
        hour: '小时前',
        minute: '分钟前',
        second: '秒前'
    };
    var root = '';
</script>


        <meta name="keywords" content="life,Hacker,生活,">
        <meta name="description" content="OpenWRT路由器使用ipv6拨号上网教程">
        <meta name="author" content="Akkuman">
        <title>OpenWRT路由器使用ipv6拨号上网教程</title>
    </head>
    <body>
        
        <header id="header" class="clearfix">
  <div class="container-fluid">
      <div class="row">
          <div class="logo">
              <div class="header-logo">
                <script>
                  var getwbclass = function() {
                    var wbclass = ['b', 'w'];
                    return wbclass[Math.floor(Math.random()*wbclass.length)];
                  }
                  var sitetitle = "Akkuman";
                  for (i in sitetitle) {
                    document.write('<a href="/"><span class="' + getwbclass() + ' titlechar">' + sitetitle.charAt(i) + '</span></a>');
                  }          
                  
                </script>
                
                <a id="btn-menu" href="javascript:isMenu();">
                    <span class="b">·</span>
                </a>
                <a href="javascript:isMenu1();">
                    <span id="menu-1" class="bf">1</span>
                </a>
                <a href="javascript:isMenu2();">
                    <span id="menu-2" class="bf">2</span>
                </a>
                <a href="javascript:isMenu3();">
                    <span id="menu-3" class="bf">3</span>
                </a>
              </div>
              <div id="menu-page">
                <a href="/archive.html"><li>归档</li></a>
                <a href="/tag.html"><li>标签</li></a>
                
                <a href="/atom.xml"><li>订阅</li></a>
                
                <a href="about.html"><li>关于</li></a>
              </div>
              <div id="search-box">
                  <div id="search">
                      <input autocomplete="off" type="text" name="s" id="menu-search" placeholder="搜索..." data-root="" />
                  </div>
              </div>
          </div>
      </div>
  </div>
  </header>
        <div id="body" class="clearfix">
            <div class="container-fluid">
                <div class="row">
                    <div id="main" class="col-12 clearfix" role="main">
                        <article class="posti" itemscope itemtype="http://schema.org/BlogPosting">
                            <h1 class="post-title" itemprop="name headline">OpenWRT路由器使用ipv6拨号上网教程</h1>
                            <div class="post-meta">
                                <p>
                                    Written by <a itemprop="name" href="/about.me.html" rel="author">Akkuman</a> with ♥ on <time datetime="1474529985" itemprop="datePublished"></time> in <a href="/tag/life/index.html">life </a><a href="/tag/Hacker/index.html">Hacker </a><a href="/tag/%e7%94%9f%e6%b4%bb/index.html">生活 </a>
                                </p>
                            </div>
                            <div class="post-content" itemprop="articleBody">
                                <blockquote>
<p>文章来源于群友，如有侵权，请联系我(aha971030@gmail.com)删除</p>
</blockquote>

<h1>原理介绍分析：</h1>

<p>湖北E信地区可以使用ipv6拨号，好处是网络是上下对等不限速网络，也就是说，你的端口上限是多少，网上就可以达到多少，我测试很多次，一般在100M左右，但是遗憾的是，该拨号方式只能使用32位系统，且由于E信软件的兼容性问题，很容易导致蓝屏死机。经过大神的抓包分析，该拨号方式是使用ipv6的隧道协议传递ipv4信号。而幸运的是，现在的openwrt支持该协议。也就是说可以使用基于openwrt的路由器采用ipv6拨号。</p>

<h1>操作步骤：</h1>

<p>首先要明确是，该拨号方式也是需要进行账号换算的，首先启动路由器，并插上网线，在电脑上下载winscp这款软件，然后我们查询一下我们的ip地址，在电脑的dos界面输入ipconfig，找到以太网配置器</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/network111.png" alt="network111" /></p>

<p>默认网关就是路由器的管理ip。</p>

<p>然后我们启动软件，按照图片设置填入数据</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/winscp111.png" alt="winscp111" /></p>

<p>然后我们就进入了路由器的文件系统</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-config.png" alt="op-config" /></p>

<p>接着，我们要做的是，进入路由器设置里面设置相关端口参数</p>

<p>在电脑的浏览器里输入管理ip地址</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/sk1530.png" alt="sk1530" /></p>

<p>进入端口设置界面</p>

<p>首先设置wan口参数</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-01.png" alt="op-01" /></p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-02.png" alt="op-02" /></p>

<p>切换协议为PPPOE，并随便输入账号密码（具体的拨号的账号密码在后面我们会加以更改）并在高级设置里勾选以下参数</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-03.png" alt="op-03" /></p>

<p>然后保存并应用</p>

<p>然后我们设置lan口参数</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-04.png" alt="op-04" /></p>

<p>按照该图设置</p>

<p>最后，我们回到接口总界面，自己创建一个端口</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-05.png" alt="op-05" /></p>

<p>名字无所谓，但协议要选择rfc6333</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-06.png" alt="op-06" /></p>

<p>提交以后填写ipv6的地址，经过大神的尝试，下面给的这个地址是比较稳定的，建议使用</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-07.png" alt="op-07" /></p>

<p>240e:d:1000::ffff:1:
并在高级设置里面勾选默认网关</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-08.png" alt="op-08" /></p>

<p>在防火墙设置里，把这个链接拉到wan口里</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-09.png" alt="op-09" /></p>

<p>最后保存</p>

<p>这样，路由器上的设置就结束了，下面转入配置文件的修改上</p>

<p>依次顺序进入到如下路径</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-10.png" alt="op-10" /></p>

<p>双击network文件打开</p>

<p>并在文件的位置更改</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-11.png" alt="op-11" /></p>

<p>然后点击保存</p>

<p>然后进入到此目录，上传我们准备的E信算法库文件</p>

<p><img src="" data-src="http://7xusrl.com1.z0.glb.clouddn.com/op-12.png" alt="op-12" /></p>

<p>最后重启一下路由器，同步一下路由器的时间，就可以了
注意，不同的芯片和不同地区的openwrt路由器，sxplugin.so文件是不一样的，具体请查看我上一篇文章打包的东西。</p>

<blockquote>
<p>再说一次，文章来源于群友，如有侵权，请联系我(aha971030@gmail.com)删除</p>
</blockquote>

                            </div>
                            <div style="display:block;" class="clearfix">
                                <section style="float:left;">
                                    <span itemprop="keywords" class="tags">
                                        tag(s): <a href="/tag/life/index.html">life </a><a href="/tag/Hacker/index.html">Hacker </a><a href="/tag/%e7%94%9f%e6%b4%bb/index.html">生活 </a>
                                    </span>
                                </section>
                                <section style="float:right;">
                                    <span><a id="btn-comments" href="javascript:isComments();">show comments</a></span> · <span><a href="javascript:goBack();">back</a></span> · 
                                    <span><a href="/">home</a></span>
                                </section>
                            </div>
                            



<div id="comments" class="gen">
    <script>
        document.write('<section id="disqus_thread"></section>');
        var site_comment_load = function disqus() {
            var d = document, s = d.createElement('script');
            s.src = '//Akkum4n.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        }
    </script>
</div>

                        </article>
                    </div>
                </div>
            </div>
        </div>
        <footer id="footer" role="contentinfo">
    <div class="container-fluid">
        <div class="row">
        <div class="col-12">
            &copy; 
            <script type="text/javascript">
                document.write(new Date().getFullYear());
            </script>
            <a href="/">Akkuman</a>.
            Using <a target="_blank" href="http://www.chole.io/">Ink</a> & <a target="_blank" href="/">Story</a>.
        </div>
        </div>
    </div>
</footer>

<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="/bundle/js/prism.js"></script>
<script src="/bundle/js/zoom-vanilla.min.js"></script>
<script src="/bundle/js/main.js"></script>

<script>
    window.onload=function(){
        if (window.location.hash!='') {
          var i=window.location.hash.indexOf('#comment');
          var ii=window.location.hash.indexOf('#respond-post');
          if (i != '-1' || ii != '-1') {
            document.getElementById('btn-comments').innerText='hide comments';
            document.getElementById('comments').style.display='block';
          }
        }
    }

    function isMenu(){
        if(document.getElementById('menu-1').style.display=='inline'||document.getElementById('menu-1').style.display=='block'){
            $('#search-box').fadeOut(200);
            $('#menu-page').fadeOut(200);
            $('#menu-1').fadeOut(500);
            $('#menu-2').fadeOut(400);
            $('#menu-3').fadeOut(300);
        } else {
            $('#menu-1').fadeIn(150);
            $('#menu-2').fadeIn(150);
            $('#menu-3').fadeIn(150);
        }
    }

    function isMenu1(){
        if(document.getElementById('menu-page').style.display=='block'){
            $('#menu-page').fadeOut(300);
        } else {
            $('#menu-page').fadeIn(300);
        }
    }

    function isMenu2(){
        if(document.getElementById('torTree')){
            if(document.getElementById('torTree').style.display=='block'){
                $('#torTree').fadeOut(300);
            } else {
                $('#torTree').fadeIn(300);
            }
        }
    }

    function isMenu3(){
        if(document.getElementById('search-box').style.display=='block'){
            $('#search-box').fadeOut(300);
        } else {
            $('#search-box').fadeIn(300);
        }
    }

    function isComments(){
        if(document.getElementById('btn-comments').innerText=='show comments'){
            document.getElementById('btn-comments').innerText='hide comments';
            document.getElementById('comments').style.display='block';
            site_comment_load();
        } else {
            document.getElementById('btn-comments').innerText='show comments';
            document.getElementById('comments').style.display='none';
        }
    }

    function Search404(){
        $('#menu-1').fadeIn(150);
        $('#menu-2').fadeIn(150);
        $('#menu-3').fadeIn(150);
        $('#search-box').fadeIn(300);
    }

    function goBack(){
        window.history.back();
    }
</script>


<script async>
"use strict";
(function(){
var cp = function(){
    var len = cPlayerOptions.length;
    for(var i=0;i<len;i++){
        var element = document.getElementById('player' + cPlayerOptions[i]['id'])
        while (element.hasChildNodes()) {
            element.removeChild(element.firstChild);
        };
        cPlayers[i] = new cPlayer({
            element: element,
            list: cPlayerOptions[i]['list'],
            });
    };
    cPlayers = [];cPlayerOptions = [];
};
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "https://cdn.bootcss.com/cplayer/3.2.1/cplayer.js";
script.async = true;
if(script.readyState){  
    script.onreadystatechange = function(){
        if (script.readyState == "loaded" ||
            script.readyState == "complete"){
            script.onreadystatechange = null;
            cp();
        }
    };
}else{  
    script.onload = function(){
        cp();
    };
}
document.head.appendChild(script);
})();
</script>

    </body>
</html>
